package cn.thornbird.orgsync.config;

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;

import java.util.Collection;

public class NoPasswordAuthenticationToken extends UsernamePasswordAuthenticationToken {

    public NoPasswordAuthenticationToken(Object principal, Collection<? extends GrantedAuthority> authorities) {
        super(principal, "N/A", authorities);
    }
    @Override
    public Object getCredentials() {
        return "N/A";
    }

}
